package com.google.code.pdfbrick.engine.command;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Johny Huang
 * @date 2009-3-12
 */
public class FilePageRange {

	private String filePath;
	private List<PageRange> pageRangeList;
	private boolean allPages=false;

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(final String filePath) {
		this.filePath = filePath;
	}

	public List<PageRange> getPageRangeList() {
		return pageRangeList;
	}

	public void setPageRangeList(final List<PageRange> pageRangeList) {
		this.pageRangeList = pageRangeList;
	}
	
	public void addPageRange(final PageRange pageRange){
		if(pageRangeList==null){
			pageRangeList=new ArrayList<PageRange>();
			pageRangeList.add(pageRange);
		}else{
			pageRangeList.add(pageRange);
		}
	}

	public boolean isAllPages() {
		return allPages;
	}

	public void setAllPages(final boolean isAllPages) {
		this.allPages = isAllPages;
	}
}
